<div class="w660">
		<div class="smallCon">
			<div class="column">
				<h3 style="margin-top:0"><span class="left f22px"><a id="top" name="top">&nbsp;</a><?=$currentplugin['plname'];?> <? if($currentplugin["public"] == '1'):?>[公共]<? endif;?> </span>
				<? if($isowner || ($is_fansed && $currentplugin["public"] == '1')):?><a class="left" style="padding-left:6px;padding-top:4px;" href="<?=c('site_url');?><?=$site['domain'];?>/plugin/add/<?=$plid;?>" class="f14px">(新建)</a><? endif;?> <span class="backprev"><a href="javascript:window.history.go(-1);">返回前页</a></span></h3>
				<? foreach ($lists as $key => $list):?>
				<p class="title"><a href="<?=c('site_url');?><?=$site['domain'];?>/show/<?=$list["moduleid"];?>/<?=$list["id"];?>"><?=$list["title"];?></a> <?php if($currentplugin["public"] == '1' && $list["userid"] != $owner['id']):?><img src="/images/gong.gif" style="vertical-align:sub;" title="来自公共创建" /><? endif;?></p>
					<? if(!$list['isposted']):?>	
						<form action="<?=c('site_url');?><?=$site['domain'];?>/vote" method="post" enctype="multipart/form-data" onsubmit="return Validator.Validate(this,3);">
	                 		<ul class="f14px">
								<li>(<?=$list["type"];?>)</li>
								<? foreach ($list["options"] as $k => $option):?>
								<? if($list["typeid"] == 0):?>
									<? $boxname = "option_".$list["id"];?>
								<? else:?>
									<? $boxname = "option_".$list["id"]."[]";?>
								<? endif;?>
								<li><input name="<?=$boxname;?>" id="<?=$boxname;?>" type="<?=$list["box"];?>" value="<?=$option["id"];?>" <? if($k == 0):?>dataType="Group" msg="至少选择一个选项"<? endif;?> /><?=$option["option"];?></li>
								<? endforeach;?>
							</ul>
							
							<input type="hidden" name="moduleid" id="moduleid" value="<?=$list['moduleid'];?>">
							<input type="hidden" name="dataid" id="dataid" value="<?=$list['id'];?>">
							<input type="hidden" name="typeid" id="typeid" value="<?=$list['typeid'];?>">
							<p style="height:30px;padding-top:12px"><? if($account):?><input name="dosubmit" id="dosubmit" value="投票" type="submit" class="airIco" /><? else:?><a href="#TB_inline?height=120&width=396&inlineId=hiddenModalContent&modal=true" class="thickbox"><input name="dosubmit" id="dosubmit" value="投票" type="button" class="airIco" style="border:0;" /></a><? endif;?> <em class="cCGray"><?=$list["total"];?>投票</em> <em class="cCGray"><?=$list['commentcount'];?>回应</em></p>
						</form>
					<div class="blank8"></div>
				  <? else:?>
				  		<ul class="f14px">
						<? foreach ($list['optionsdata'] as  $val):?>
							<li><span class="countTit"><?=$val["option"];?></span><span class="countBox"><span class="percent" style="width:<?=$val["scale"];?>%"></span></span><span class="countRight"><?=$val["scale"];?>%(<?=$val["count"];?>)</span></li>
						<? endforeach;?>
						</ul>
						<div class="hackbox"></div>
						<p class="f14px" style="padding-top:12px;"><em class="cGreen">已投过</em> <em class="cCGray"><?=$list["total"];?>投票</em> <em class="cCGray"><?=$list['commentcount'];?>回应</em></p>			
				  <? endif;?>
				<? endforeach;?>
				<div class="allmark">
					<div class="right" style="padding-right:60px"><a href="#top" class="goTop cCGray">返回顶部</a></div>
				</div>
				<div class="blank8"></div>
				<div class="page">
					<?=$pagestring;?>
				</div>
			</div>
		</div>
		
	</div>
	<script language="javascript" src="<?=c('site_url');?><?=$site['domain'];?>/right"></script>
	<div class="hackbox"></div>
</div>